import {LOGIN,LOGOUT} from '../constants/ActionTypes.js';
import objectAssign from 'object-assign';

const initialState = {
  name:null,
  pwd:null
};

export default function loginAppState(state=initialState,action){
  switch (action.type) {
    case LOGIN:
      return objectAssign({},state,{name:"18600000000",pwd:"12345678"});

    case LOGOUT:
      return objectAssign({},state);

    default:
      return state;
  }
}
